package 第三轮工作.暨南大学;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

import java.io.IOException;

public class JNU {
    public static void main(String[] args) throws IOException {
        String Url = "https://energy.jnu.edu.cn/js/main.htm";
        Connection connect = Jsoup.connect(Url);
        Document post = connect.post();
//        System.out.println(post.text());
        for (Element elementsByClass : post.getElementsByTag("ul")) {
            for (Element element : elementsByClass.getElementsByTag("li")) {
                System.out.println(element.text());
            }

        }

    }
}
